import Vue from 'vue'
import Vuex from 'vuex'
import about from '../store/module/about'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count:0
  },
  mutations: {
    GET_COUNT(state,count) {
      state.count=count
    }
  },
  actions: {
    Count (context,n) {
      context.commit('GET_COUNT',n)
    },
    
  },
  getters:{
    getCount:state=>{
      return state.count+1
    }
  },
  modules: {
    about
  }
})
